package com.atgm.mall.gmmallclub.feign;

import com.atgm.common.utils.R;
import com.atgm.mall.gmmallclub.feign.fallback.MemberFeignFallbackService;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(value = "gm-mall-member", qualifier = "memberFeignService", fallback = MemberFeignFallbackService.class)
public interface MemberFeignService {

    @GetMapping("/gmmallmember/member/infos")
    R getMemberInfo(@RequestParam("ids") List<Long> memberIds);

}
